From e9618104f7d8ca34e2e0ac982d077daf26dc692e Mon Sep 17 00:00:00 2001 From: Mirko Vogt Date: Sun, 11 May 2025 23:26:29 +0000 Subject: [PATCH] qt5base/qmake.conf: clear optimization related compiler flags --- .../qt5/qt5base/files/mkspecs/linux-openwrt-g++/qmake.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frameworks/qt5/qt5base/files/mkspecs/linux-openwrt-g++/qmake.conf b/frameworks/qt5/qt5base/files/mkspecs/linux-openwrt-g++/qmake.conf index eff0868..c82f23b 100644 --- a/frameworks/qt5/qt5base/files/mkspecs/linux-openwrt-g++/qmake.conf +++ b/frameworks/qt5/qt5base/files/mkspecs/linux-openwrt-g++/qmake.conf @@ -10,6 +10,11 @@ include(../common/linux.conf) include(../common/gcc-base-unix.conf) include(../common/g++-unix.conf) +QMAKE_CFLAGS_OPTIMIZE = +QMAKE_CFLAGS_OPTIMIZE_FULL = +# for whatever reasons $QMAKE_C*FLAGS_RELEASE has set optimization flags directly, instead of referencing $QMAKE_CFLAGS_OPTIMIZE*, so clearing them explicitly, too +QMAKE_CFLAGS_RELEASE = +QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE # modifications to gcc-base.conf (included by gcc-base-unix.conf) QMAKE_CFLAGS += $$(TARGET_CFLAGS) -- 2.30.2